﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp1.IICMoudle
{
    public interface IChip
    {
        IICDataListener Listener { get; set; }


        bool WriteReg(byte[] writeData, int writeLen);


        byte[] ReadReg(byte[] readData, int readLen);


        void SetDebugMode(byte mode);


        int ReadDataReady();


        int[] GetData(int len);


        void ClearDataReady();

        string ReadFwVersion();


        string ReadModuleConnectDynamic();


        short ReadModuleConnect();


        byte[] ReadAfeGain();


        short[] ReadOffset(int chNum);


        short ReadDacToMvCoef();


        int ReadAdcToUvCoef();


        byte WriteCoeff(float[] coefficient);


        float[] ReadCoeff(int chNum);


        UpgradeResult UpdateFW(string filePath);
    }
}
